<div class="authorizations form">
<h2><?php echo __('Edit Authorization'); ?></h2>
		
<div class="clear"></div>
<div class="actions selected">
	<?php $project_id = $this->Form->value('Project.project_id'); if(!empty($project_id)) echo $this->Html->link(__('Cancel'), array('controller'=>'projects','action' => 'view',$project_id));?>
	<?php echo $this->Html->link(__('View'), array('action' => 'view', $this->Form->value('Authorization.id')));?>
	<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Authorization.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Authorization.id'))); ?>
</div>
<div class="clear"></div>

<?php echo $this->Form->create('Authorization');?>
	<fieldset>
	<?php
		echo $this->Form->input('id');
		echo $this->Form->input('description');
		echo $this->Form->input('login');
		echo $this->Form->input('password',array('type'=>'text'));
		echo $this->Form->input('web_url');
		echo $this->Form->input('auth_type_id',array('empty'=>'','options'=>Configure::read('Config.auth_groups')));
		echo $this->Form->input('Domain');
		echo $this->Form->input('Project');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit'));?>
</div>
<div class="actions">
	<?php echo $this->element('/menu/main')?>	
	<?php echo $this->element('/menu/settings')?>	
</div>